Differences between Oracle temporary tables and SQL Server temporary tables:
The process of creating a temporary table in the Oracle database and the difference between the temporary table and the SQL Server are described in this article, next,
Differences between temporary tables in Oracle and temporary tables in SQL Server compared with the process of creating temporary tables in Oracle databases and the differences between temporary tables in SQL Server are the main content of this
The primary purpose of a temporary tablespace is to sort operations in a database [such as creating indexes, orders by and group BY, DISTINCT, union/intersect/minus/, sort-merge and join, analyze commands], managing indexes [ such as the creation of
Although we often use temporary tables in daily database development and maintenance, we may still have a poor understanding of temporary tables.
I found a good post on the Internet today to share with you.
Source:
This articleArticleThis article mainly introduces the usage of temporary tables in Oracle databases, hoping to help you learn and work.
I. Syntax
In Oracle, you can create two types of temporary tables:
(1) Session-specific temporary tables
1 Overview
In addition to permanent tables, the ORACLE database can also create temporary tables. These temporary tables are used to save the data of a SESSION or the data required in a transaction. When the session exits or the user commits a
Temporary tables: Like normal tables, there is a structure, but the management of the data is not the same, the temporary table stores the transaction or the intermediate result set of the session, the data saved in the temporary table is only
Temporary table concept
A temporary table is a database object used to temporarily save temporary data (or intermediate data). It is similar to a common table, but it is quite different. It can only be stored in temporary tablespaces, not user
When sorting, grouping and summarizing, and indexing are performed in the Oracle database, a lot of temporary data is generated. If there is an employee information table, the database stores the installation record creation time. If you use the
In Oracle8i or a later version, you can create two types of temporary tables:
1. Session-specific temporary table
Create global temporary ()
On commit preserve rows;
2. Temporary tables specific to transactions
Create global temporary ()
On
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.